import service from '@/utils/request'

export const useTask_progressApi = (id) => {
  return service.get('/business/task_progress/' + id)
}

export const useTask_progressSubmitApi = (dataForm) => {
  if (dataForm.id) {
    return service.put('/business/task_progress', dataForm)
  } else {
    return service.post('/business/task_progress', dataForm)
  }
}
